<template>
  <div id="app">
    <!-- 导航菜单 -->
    <nav>
      <router-link to="/form">商品录入</router-link> |
      <router-link to="/list">商品列表</router-link>
    </nav>
    <!-- 路由视图 -->
    <router-view />
  </div>
</template>

<script>
export default {
  name: 'App',
};
</script>

<style>
#app {
  font-family: Arial, sans-serif;
  padding: 20px;
  max-width: 1600px;
  margin: 0 auto;
}

nav {
  margin-bottom: 20px;
}

nav a {
  text-decoration: none;
  color: #2c3e50;
  margin: 0 10px;
}

nav a.router-link-active {
  font-weight: bold;
  color: #42b983;
}

nav a.router-link-exact-active {
  font-weight: bold;
  color: #42b983;
}
</style>